/**
 * Created by douxin on 23/09/2016.
 */

import React from 'react';
import PaymentStatisticPieChart from './PaymentStatisticPieChart';

class PaymentContainer extends React.Component {

    render() {
        return (
            <div className="row">
                <div className="panel panel-grey-blue">
                    <div className="panel-heading">
                        <h3 className="panel-title">支付统计</h3>
                    </div>
                    <div className="panel-body">
                        <PaymentStatisticPieChart trades={this.props.data}/>
                    </div>
                </div>
            </div>
        );
    }

}

PaymentContainer.propTypes = {
    data: React.PropTypes.array
};

export default PaymentContainer;